import request from '@/utils/request'

// 查询我发起的审核
export function listemergencyDrill(data) {
  return request({
    url: '/app/emergencyDrill/getList',
    method: 'post',
    data
  })
}
// 新增
export function addemergencyDrill(data) {
    return request({
      url: '/app/emergencyDrill/edit',
      method: 'post',
      data
    })
  }
  
// 删除
export function deleteemergencyDrill(data) {
  return request({
    url: '/app/emergencyDrill/delete',
    method: 'post',
    data
  })
}



// 查询待我审核
export function listByMyslef(params) {
  return request({
    url: '/app/emerg/listByMyslef/'+ params.userId,
    method: 'get',
    params
  })
}

// 发起审核 
export function vehicles(data) {
  return request({
    url: '/app/emerg',
    method: 'post',
    data
  })
} 

// 我的审核提交
export function myVehicles(data) {
  return request({
    url: '/app/emerg',
    method: 'put',
    data
  })
}


// 查询发布通知
export function emergSend(data) {
    return request({
      url: '/app/emerg/listByNote',
      method: 'post',
      data
    })
  }
  
// 发布
export function emergUpdateNote(data) {
    return request({
      url: '/app/emerg/updateNote',
      method: 'post',
      data
    })
  }


// 总结  我发起的
export function emergsummieList(data) {
    return request({
      url: '/app/emergsummie/getList',
      method: 'post',
      data
    })
  }
// 总结  待我审核
export function emergsummieListLoding(params) {
    return request({
      url: '/app/emergsummie/listByMyslef/'+params.userId,
      method: 'get',
    })
  }
// 新增总结
export function emergsummieAdd(data) {
    return request({
      url: '/app/emergsummie',
      method: 'post',
      data
    })
  }

  // 总结审核
export function emergsummieExamine(data) {
    return request({
      url: '/app/emergsummie',
      method: 'put',
      data
    })
  }
  // 导出
  export function emergsummieexportPDF(sumId) {
    return request({
      url: `/app/emergsummie/exportPDF/${sumId}`,
      method: 'get',
    })
  }


// 二维码
export function getCode() {
    return request({
      url: '/app/emerg/code',
      method: 'get',
    })
  }

